package com.helloweenvsfei.forum.bean;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table
public class Message extends BaseBean {
	
	private Person sendPerson;
	
	private Person receivePerson;
	
	private String content;
	
	@Temporal(value = TemporalType.TIMESTAMP)
	private Date sendTime;
	
	private boolean read;
	
	public Person getSendPerson() {
		return sendPerson;
	}

	public void setSendPerson(Person sendPerson) {
		this.sendPerson = sendPerson;
	}

	public Person getReceivePerson() {
		return receivePerson;
	}

	public void setReceivePerson(Person receivePerson) {
		this.receivePerson = receivePerson;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public boolean isRead() {
		return read;
	}

	public void setRead(boolean read) {
		this.read = read;
	}
}
